package com.treetao.union.db.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.treetao.union.db.mapper.MallOrderExpressMapper;
import com.treetao.union.db.model.MallOrderExpress;
import com.treetao.union.db.service.MallOrderExpressService;

/**
 * <p>
 * 订单物流 服务实现类
 * </p>
 *
 * @author Dev.M
 * @since 2020-04-11
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class MallOrderExpressServiceImpl extends ServiceImpl<MallOrderExpressMapper, MallOrderExpress> implements MallOrderExpressService {
	
	@Override
	public MallOrderExpress getOrderExpress(Long orderno) {
		QueryWrapper<MallOrderExpress> q = new QueryWrapper<MallOrderExpress>();
		q.eq("orderno", orderno);
		return getOne(q);
	}

}
